package com.day9;

import java.util.HashSet;

public class b {
    public static void main(String[] args) {
        HashSet<Student1> hs = new HashSet<>();

        Student1 Sd1 = new Student1("xiaohon", 20);
        Student1 Sd2 = new Student1("xiaohon", 20);
        Student1 Sd3 = new Student1("xiaomin", 22);

        hs.add(Sd1);
        hs.add(Sd2);
        hs.add(Sd3);
        for (Student1 h : hs) {
            System.out.println(h);
        }
    }
}
